package com.ryan.day02.demo01;

import java.util.Scanner;

public class DemoAnonymous {
    public static void main(String[] args) {
/*
        //普通使用方式
        Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();

        //匿名对象的方式
        int i1 = new Scanner(System.in).nextInt();

        methodParam(new Scanner(System.in));
*/

        int u = methodReturn().nextInt();
        System.out.println(u);
    }

    public static void methodParam(Scanner sc){
        System.out.println(sc);
    }

    public static Scanner methodReturn(){
        return new Scanner(System.in);
    }
}
